<template>
    <div class="editableElement">
        <component :is="currElement"></component>

    </div>
</template>
<script setup>
import { ref } from 'vue';
import textElement from './elements/text.vue';

const props = defineProps({
    info: Object
})
let currElement = ref(null);
let ElementMaps = {
    text: textElement
}
currElement = ElementMaps[props.info.type]
</script>
<style lang="scss" scoped></style>
